package com.zpl.member.controller;

import com.zpl.core.Result;
import com.zpl.member.enums.Gender;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangyuxin
 * @date 2020/9/28
 */
@RestController
@RequestMapping("/common")
public class CommonController {
    @GetMapping("genders")
    public Result getGender(){
        return Result.success(Gender.toJson());
    }
}
